<?php


use \think\Route;

//登录功能
Route::post('login','miniapp/Login/login');

//用户
Route::group('user',function () {
    Route::get('user','miniapp/Member/user');
    Route::post('edit','miniapp/Member/edit');
});

//订单
Route::group('order',function () {
    //规格列表
    Route::get('spec','miniapp/Spec/list');
    Route::get('list','miniapp/Order/list');
    Route::post('add','miniapp/Order/add');
    Route::get('order','miniapp/Order/order');
});

//设备报修
Route::group('repair',function () {
    //规格列表
    Route::get('list','miniapp/Repair/list');
    Route::post('add','miniapp/Repair/add');

});

//轮播图
Route::group('banner',function () {
    Route::get('list', 'miniapp/Banner/list');
});

//公告
Route::group('notice',function () {
    Route::get('list', 'miniapp/Notice/list');
});

//菜单
Route::group('menu',function () {
    Route::get('list1', 'miniapp/Menu/list1');
    Route::get('list2', 'miniapp/Menu/list2');
});

//产品列表
Route::group('product',function () {
    Route::get('list1', 'miniapp/Detail/list1');
    Route::post('list2', 'miniapp/Detail/list2');
    Route::post('product', 'miniapp/Detail/detail');
});

//收货地址
Route::group('address',function () {
    Route::post('add', 'miniapp/Address/add');
    Route::get('list', 'miniapp/Address/list');
    Route::post('list2', 'miniapp/Address/list2');
    Route::post('edit1', 'miniapp/Address/editList');
    Route::post('edit2', 'miniapp/Address/edit');
    Route::post('del', 'miniapp/Address/del');
});

// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

//return [
//    //别名配置,别名只能是映射到控制器且访问时必须加上请求的方法
//    '__alias__'   => [
//    ],
//    //变量规则
//    '__pattern__' => [
//    ],
////        域名绑定到模块
////        '__domain__'  => [
////            'admin' => 'admin',
////            'api'   => 'api',
////        ],
//
//];

